﻿//弹出提示框
function alert_msg($tishi, $content, $sure) {
    $alert = "<div class='alert_msg'>";
    $alert += "<h4>" + $tishi + "</h4>";
    $alert += "<p>" + $content + "</p>";
    $alert += "<div class='btnsure' onclick='sure();'>" + $sure + "</div>";
    $alert += "</div>";
    $alert += "<div class='shade'></div>";
    $("body").append($alert);
    $(".alert_msg").css({ top: document.documentElement.scrollTop + document.body.scrollTop + 100 + "px", display: "block", left: document.documentElement.scrollWidth / 2 - 100 + "px" });
}
function sure() {
    $(".alert_msg").css("display", "none");
    $(".shade").css("display", "none");
}

//删除信息提醒
function del_msg() {
	return confirm('你确定要删除该条信息吗？');
}

// 隔行变色
$(function() {
	$(".cms_table3 tr:nth-child(odd)").addClass("tr_bg"); 
	$(".cms_table3 tr").hover(function() {
		$(this).addClass("tr_hover_col");
	}, function() {
		$(this).removeClass("tr_hover_col");
	});
    //返回首页
    $(".goBack").click(function () {
        window.location.href = "home";
    });
});